<?php
namespace Admin\Model;
use Think\Model\ViewModel;

class OrderViewModel extends ViewModel{
	public $viewFields = array(
		'Order' => array('id','orderdate','ordernum','customers_id','customers_name','receipt_num','voucher_num','jdy_id','jdy_name','status','remark','total','_as'=>'OrderZB'),
		'OrderDetail' => array('goods_id','goods_name','type_id','type_name','spe_id','spe_name','unit','price','num','total','_on'=>'OrderZB.id=OrderDetail.order_id'),
		);
}